/**
 * Copyright 2020 OPSLI 快速开发平台 https://www.opsli.com
 * <p>
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 * <p>
 * http://www.apache.org/licenses/LICENSE-2.0
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */
package org.opsli.modulars.contract.contractinfo.service;

import org.opsli.core.base.service.interfaces.CrudServiceInterface;

import org.opsli.modulars.contract.contractinfo.entity.Contract;
import org.opsli.api.wrapper.contract.contractinfo.ContractModel;

/**
 * 会员合同 Service
 *
 * @author 17607080935
 * @date 2025-07-07 16:42:17
 */
public interface IContractService extends CrudServiceInterface<Contract, ContractModel> {

    /**
     * 提交合同审批
     *
     * @param contractId 合同ID
     * @return boolean
     */
    boolean submitForApproval(String contractId);

    /**
     * 审批通过后处理
     *
     * @param contractId 合同ID
     */
    void onApprovalApproved(String contractId);

    /**
     * 审批拒绝后处理
     *
     * @param contractId 合同ID
     */
    void onApprovalRejected(String contractId);

    /**
     * 根据合同ID获取审批状态
     *
     * @param contractId 合同ID
     * @return String 审批状态
     */
    String getApprovalStatus(String contractId);

}